/*
 * Copyright 2020-2030 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

package com.gitee.minimalismstyle.fresh.sys.api.model

import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.annotations.*
import org.springframework.data.annotation.Id
import java.time.LocalDateTime


/**
 * 短信验证码Dto
 * @author maoxiaodong
*/
@ApiModel(value = "短信验证码")
open class SysSmscode{

    @Id
    @ApiModelProperty(value = "主键")
    open var id: Long? = null

    /**
    * 手机号
    */
    @ApiModelProperty(value = "手机号")
    var phone: String? = null

    /**
    * 内部代码
    */
    @ApiModelProperty(value = "内部代码")
    var code: String? = null

    /**
    * 发送消息
    */
    @ApiModelProperty(value = "发送消息")
    var message: String? = null

    /**
    * 有效时间
    */
    @ApiModelProperty(value = "有效时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    var validTime: LocalDateTime? = null

    /**
    * 发送时间
    */
    @ApiModelProperty(value = "发送时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    var sendTime: LocalDateTime? = null
}